/**
 * 
 */
package com.jquery.ui.tags.beans.script;

import java.util.Map;

import com.jquery.ui.core.bean.UIBean;
import com.jquery.ui.dictionary.IPositionEnum;
import com.jquery.ui.uitls.StringUtils;

/**
 * @author linyajun
 * 
 * @date	2013-10-11
 * @description   
 */
public class GridColumnScriptUI extends UIBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6526643653041843510L;
	private String  clumnName;
	private String headerName;
	private String width;
	private IPositionEnum align;
	private boolean sortabl=true;
	
	@Override
	public void putAttribute(Map<String, Object> attribute) {
		if (StringUtils.isNotEmpty(clumnName)) {
			attribute.put("clumnName", clumnName);
		}
		if (StringUtils.isNotEmpty(headerName)) {
			attribute.put("headerName", headerName);
		}
		if (StringUtils.isNotEmpty(width)) {
			attribute.put("width", width);
		}
		attribute.put("align", align);
		attribute.put("sortabl", sortabl);
		

	}

	/**
	 * @return the clumnName
	 */
	public String getClumnName() {
		return clumnName;
	}

	/**
	 * @param clumnName the clumnName to set
	 */
	public void setClumnName(String clumnName) {
		this.clumnName = clumnName;
	}

	/**
	 * @return the headerName
	 */
	public String getHeaderName() {
		return headerName;
	}

	/**
	 * @param headerName the headerName to set
	 */
	public void setHeaderName(String headerName) {
		this.headerName = headerName;
	}

	/**
	 * @return the width
	 */
	public String getWidth() {
		return width;
	}

	/**
	 * @param width the width to set
	 */
	public void setWidth(String width) {
		this.width = width;
	}

	/**
	 * @return the align
	 */
	public IPositionEnum getAlign() {
		return align;
	}

	/**
	 * @param align the align to set
	 */
	public void setAlign(IPositionEnum align) {
		this.align = align;
	}

	/**
	 * @return the sortabl
	 */
	public boolean isSortabl() {
		return sortabl;
	}

	/**
	 * @param sortabl the sortabl to set
	 */
	public void setSortabl(boolean sortabl) {
		this.sortabl = sortabl;
	}
	
	
	

}
